home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Games: Greatest Hits 1996
/
Amiga Games: Greatest Hits 1996.iso
/
archive
/
userbox
/
publicdomain
/
megabook.lha
/
MegaBook
/
Storage
/
SendEMail
/
Yam.mbrx
< prev
next >
Wrap
Text File
|
1996-07-27
|
2KB
|
75 lines
/*
** YAM EMail sender for MegaBook 3
** By Steve Clack (based on a Spot's script by Tom Bampton)
** Edited slightly by Tom Bampton to use the requester commands in MegaBook
** (they did't exist when steve wrote the script :)))..)
** Also added the 'UseSig' stuff.
**
** © 1996 Eden Software
**
** This is the script run when the Send EMail option is selected from the
** Extras menu, please see the docs for creating your own script to use
** your EMail program.
*/
/*
This is the path and executable of the Text Editor you prefer to use for
YAM, I am unable to obtain information of the editor from YAM's config
file for now so please change this to suit you.
*/
EDITOR = "C:ED"
/*
If you dont want to use a signature, set this to No, otherwise set it to
Yes.
*/
UseSig = 'Yes'
/*
This is the path and executable for YAM, *should* be the same on every
machine because it needs the assign, but if you have renamed the YAM
executable then change it below...
*/
YAMMY = "YAM:YAM"
parse arg Address
/* Check if Yam is running, if not, run it */
if ~show('P', 'YAM') then do
address command
'run >nil: ' YAMMY
/* Wait for the ARexx port */
do 5 while ~show('P', 'YAM')
'sys:rexxc/waitforport YAM'
end
end
address 'MEGABOOK.01'
options results
GETSTRING "Enter the subject of the EMail"
Subject = result
SELECTFILE "Enter filename of attached binary file"
if RC = 0 then do
Binary = result
end
else do
Binary = ""
end
address command
if UseSig = 'Yes' then do
'Copy YAM:.signature T:YAM_NewLetter'
end
EDITOR 'T:YAM_NewLetter'
address 'YAM'
options results
setfolder 1
writemailto Address
writesubject Subject
'writeattach "'Binary'"'
writeletter "T:YAM_NewLetter"
writequeue